<?php
/**
 * Created by PhpStorm.
 * User: ruma
 * Date: 2019/1/18
 * Time: 23:26
 */

namespace app\admin\validate;


class ChangePwdValidate extends BaseValidate
{
    protected $rule = [
        'password' => 'require',
        'new_password' => 'require|different:password',
        'confirm_password' => 'require|confirm:new_password'
    ];
    protected $message = [
        'password.require' => '请输入原始密码',
        'new_password.require' => '请输入新密码',
        'new_password.different' => '原密码和新密码相同',
        'confirm_password.require' => '再次输入新密码',
        'confirm_password.confirm' => '两次密码输入不一致'
    ];
}